<link rel='stylesheet' id='main-css' href='__STATIC__/css/index.css' type='text/css' media='all'/>

<div id="homeso">
    <form method="post" id="soform" style="text-align: center;float: none" action="seacher.php">
        <img src="__STATIC__/images/sologo.png">
        <br><br>
        <input tabindex="2" class="homesoin" id="sos" name="keywords" type="text" placeholder="输入你要观看的视频名或视频网址"
               value="">
        <input type="hidden" name="qiehuan" value="1">
        <button id="button" tabindex="3" class="homesobtn" type="submit">搜索</button>
    </form>
    <script>
        function valuechange() {
            var qiehuan = document.getElementById('s1').value;
            if (qiehuan == 'q') {
                document.getElementById('soform').action = '';
                document.getElementById('imgsrc').src = '__STATIC__/images/sologo.png';
            } else if (qiehuan == 'b') {
                document.getElementById('soform').action = '';
                document.getElementById('imgsrc').src = '__STATIC__/images/wp.png';
            } else if (qiehuan == 'c') {
                document.getElementById('soform').action = '';
                document.getElementById('imgsrc').src = '__STATIC__/images/yhq.png';
            } else if (qiehuan == 'd') {
                document.getElementById('soform').action = '';
                document.getElementById('imgsrc').src = '__STATIC__/images/cili.png';
            } else {
                document.getElementById('soform').action = '';
                document.getElementById('imgsrc').src = '__STATIC__/images/mv.png';
            }
        }
        var a = document.getElementById('sos');
        var btn = document.getElementById('button');
        btn.onclick = function () {
            var reg = /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/;
            if (!reg.test(a.value)) {
                if (!a.value) {
                    alert('不能为空');
                } else {
                }
            }
            else {
                var url = 'splay.php?play=' + a.value;
                window.location.href = url;
                return false;
            }
        }
    </script>
</div>
<section class="container">
    <div class="single-strong">最新热门电影推荐<span class="chak"><a href="{:url('index/movies')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='movies' id='item'}
                <li class="item">
                    <a class="js-tongjic" href="{:url('index/play',['id'=>$item.url])}" title="{$item.title}" target="_blank">
                        {$item.ico}
                        {$item.detail}
                    </a></li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="single-strong">精品推荐<span class="chak"><a href="{:url('yhq')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='yhq' id='item'   length='6'}
                <li class="item">
                    <a class="js-tongjic" href="{$item.url}" title="{$item.title}" target="_blank">
                        <div class="cover g-playicon">
                            <img src="{$item.img}" alt="{$item.title}">
                            <span class="pay" style=" width:30%;background:#ff435e;">
                                {$item.coupon}
                            </span>
                            <span class="hint" style="text-decoration: line-through;right:50px;right:100px;">{$item.oldprice}</span>
                            <span class="hint" style="right:50px;">券后价</span>
                            <span class="hint" style="background:#fef07e;width: 40px; height:30px; line-height:30px;text-align: center; font-size:14px; font-weight:bold; color:#ff435e;">{$item.price}</span>
                        </div>
                        <div class="detail">
                            <p class="title g-clear" style=" margin-top:5px;">
                                <span class="s0">{$item.title}</span></p>
                        </div>
                    </a>
                </li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="single-strong">最新热门电视剧推荐<span class="chak"><a href="{:url('index/index/tvs')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='tvs' id='item'}
                <li class="item">
                    <a class="js-tongjic" href="{:url('index/play',['id'=>$item.url])}" title="{$item.title}" target="_blank">
                        {$item.ico}
                        {$item.detail}
                    </a></li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="single-strong">最新热门综艺推荐<span class="chak"><a href="{:url('index/zongyi')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='zys' id='item'}
                <li class="item">
                    <a class="js-tongjic" href="{:url('index/play',['id'=>$item.url])}" title="{$item.title}" target="_blank">
                        {$item.ico}
                        {$item.detail}
                    </a></li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="single-strong">精品推荐<span class="chak"><a href="{:url('yhq')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='yhq' id='item'  offset="6" length='6'}
                <li class="item">
                    <a class="js-tongjic" href="{:url('redir',['u'=>$item.url])}" title="{$item.title}" target="_blank">
                        <div class="cover g-playicon">
                            <img src="{$item.img}" alt="{$item.title}">
                            <span class="pay" style=" width:30%;background:#ff435e;">
                                {$item.coupon}
                            </span>
                            <span class="hint" style="text-decoration: line-through;right:50px;right:100px;">{$item.oldprice}</span>
                            <span class="hint" style="right:50px;">券后价</span>
                            <span class="hint" style="background:#fef07e;width: 40px; height:30px; line-height:30px;text-align: center; font-size:14px; font-weight:bold; color:#ff435e;">{$item.price}</span>
                        </div>
                        <div class="detail">
                            <p class="title g-clear" style=" margin-top:5px;">
                                <span class="s0">{$item.title}</span></p>
                        </div>
                    </a>
                </li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="single-strong">最新热门动漫推荐<span class="chak"><a href="{:url('index/dongman')}">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul class="list g-clear">
                {volist name='dms' id='item'}
                <li class="item">
                    <a class="js-tongjic" href="{:url('index/play',['id'=>$item.url])}" title="{$item.title}" target="_blank">
                        {$item.ico}
                        {$item.detail}
                    </a></li>
                {/volist}
            </ul>
        </div>
    </div>
</section>
